﻿using System.Windows.Forms;

namespace App.UI.Tabs
{
    internal class Tabs : TabControl
    {
        public Tabs(string[] labels)
        {
            int i = -1;
            this.Dock = DockStyle.Fill;
            foreach (string label in labels)
            {
                TabPage page = new TabPage(label);
                page.Dock = DockStyle.Fill;
                page.Controls.Add(new TabItem(++i));
                this.TabPages.Add(page);
            }
        }
    }
}
